]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Fix ShellInfo.setMessage()
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 20 Aug 2012 14:14:22 +0000 (16:14 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 27 Aug 2012 10:15:34 +0000 (12:15 +0200)
Commit 22eea750 made info messages show up in the lock screen, but
as setShowWhenLocked() throws an exception when called on non-transient
notifications, the transient hint has to be set first.

https://bugzilla.gnome.org/show_bug.cgi?id=682268

js/ui/overview.js

index cb0ff67d91261e3aed9aecec72d6ba755d47b392..2c706a22d8914b75698b7772d24932a8c65bd3ee 100644 (file)
@@ -70,14 +70,13 @@ const ShellInfo = new Lang.Class({
         let notification = null;
         if (this._source.notifications.length == 0) {
             notification = new MessageTray.Notification(this._source, text, null);
+            notification.setTransient(true);
             notification.setShowWhenLocked(true);
         } else {
             notification = this._source.notifications[0];
             notification.update(text, null, { clear: true });
         }
 
-        notification.setTransient(true);
-
         this._undoCallback = undoCallback;
         if (undoCallback) {
             notification.addButton('system-undo',